mergeInto(LibraryManager.library, {

  Hello: function () {
    window.alert('Hello, world!');
  },

  PrintFloatArray: function (array, size) {
    for(var i = 0; i < size; i++)
    console.log(HEAPF32[(array >> 2) + i]);
  },
  StringReturnValueFunction: function () {
    var returnStr = 'bla';
    var bufferSize = lengthBytesUTF8(returnStr) + 1;
    var buffer = _malloc(bufferSize);
    stringToUTF8(returnStr, buffer, bufferSize);
    return buffer;
  },
  PushStringValue: function(value){
    UnityPushValue(UTF8ToString(value));
  },
  CallJavascript:function(name){
    UnityCall(UTF8ToString(name));
  }
});